package ar.com.source.rowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import ar.com.source.dominio.DiaExcel;

public class DiasRowMapper implements RowMapper<DiaExcel> {

	@Override
	public DiaExcel mapRow(ResultSet rs, int arg1) throws SQLException {
		
		DiaExcel diaExcel =  new DiaExcel(rs.getDate("fecha"));
		diaExcel.setAlerta(rs.getBoolean("alerta"));
		diaExcel.setIdDia(rs.getInt("idDias"));
		
		return diaExcel;
	}

}
